package org.gh.blackcloud;

public class ResouceUtils {

	/**
	 * 是否是资源
	 * @param url
	 * @param resourceSuffix
	 * @return
	 */
	public static boolean isResource(String url, String[] resourceSuffix) {
		int i = 0;
		if ((i = url.lastIndexOf(".")) == -1) {
			return false;
		}
		String urlSuffix = url.substring(i);
		for (String rs : resourceSuffix) {
			if (rs.equalsIgnoreCase(urlSuffix)) {
				return true;
			}
		}
		return false;
	}
}
